package objects;

import java.util.Vector;

public abstract class VirtualClass {
	protected String sCourseName;
	protected String sCourseAbbr;

	protected String sProductFamily;
	protected String sProductAbbr;
	protected String sVersion;
	protected Vector<Instructor> vInstructor;
	protected Vector<Pod> vPod;
	protected String sDeployFolder;
		
	public VirtualClass(String cName){
		sCourseName = cName;
		sCourseAbbr = "";
		sProductAbbr = "";
		sProductFamily = "";
		sVersion = "";
		vInstructor = new Vector<Instructor>();
		vPod = new Vector<Pod>();
		sDeployFolder = "";
	}
	
	public void setCourseName(String name){sCourseName = name;}
	public void setCourseAbbr(String cAbbr){sCourseAbbr = cAbbr;}
	public void setProductAbbr(String pAbbr){sProductAbbr = pAbbr;}
	public void setProductFamily(String pName){sProductFamily = pName;}
	public void setVersion(String sVer){sVersion = sVer;}
	public void setInstructor(Vector<Instructor> vIns){
		if (vInstructor.size()>0){
			vInstructor.removeAllElements();
			vInstructor.addAll(vIns);
		} else{
			vInstructor.addAll(vIns);
		}		
	}
	public void setPods(Vector<Pod> podGroup){
		if (vPod.size()>0){
			vPod.removeAllElements();
			vPod.addAll(podGroup);
		}else{
			vPod.addAll(podGroup);
		}
	}
	public void setDeployFolder(String dPath){sDeployFolder = dPath;}
	
	public String getCourseName(){return sCourseName;}
	public String getCourseAbbr(){return sCourseAbbr;}
	public String getProductAbbr(){return sProductAbbr;}
	public String getProductFamily(){return sProductFamily;}
	public String getVersion(){return sVersion;}
	public Vector<Instructor> getInstructorGroup(){return vInstructor;}
	public Vector<Pod> getPodGroup(){return vPod;}
	public String getDeployFolder(){return sDeployFolder;}
	
	
}